package com.mall;

import com.mall.common.RedisClient;
import com.mall.common.RedisIdWorker;
import com.mall.config.RabbitConfig;
import com.mall.entity.SmoothMallProduct;
import com.mall.service.SmoothMallProductService;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.password.PasswordEncoder;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
@SpringBootTest
public class MallApplication2 {

    @Autowired
    RabbitTemplate rabbitTemplate;

    @Test
    public void mq(){
        rabbitTemplate.convertAndSend(RabbitConfig.MALL_EXCHANGE,"mall.seckill","hermione");
    }

}
